<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import = "model.News"%>
<%@ page import = "control.NewsControl"%>
<body>
<%
	
  	response.setCharacterEncoding("utf-8");
	int objectId = Integer.parseInt(request.getParameter("id"));
	System.out.println(objectId);
	
  	News news = NewsControl.getOneNews(objectId);
	
%>
<p>标题：<%out.print(news.getTitle());%></p>
<p>阅读次数：<%out.print(news.getView());%></p>

<p>内容：
	<%
		out.print(news.getContent());
	%>
</p>
<input type="button" value="返回动态列表" onClick="history.go(-1)">

</body>